package org.desktop.web.client.custom.widget.grid.timesheet;

import com.google.web.bindery.autobean.shared.AutoBeanFactory;
import com.sencha.gxt.data.shared.loader.JsonReader;
import com.sencha.gxt.data.shared.loader.ListLoadResult;
import com.sencha.gxt.data.shared.loader.ListLoadResultBean;

public class TimesheetDataRecordJsonReader extends JsonReader<ListLoadResult<Timesheet>, TimesheetRecordResult> {

	public TimesheetDataRecordJsonReader(AutoBeanFactory factory,
			Class<TimesheetRecordResult> rootBeanType) {
		super(factory, rootBeanType);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected ListLoadResult<Timesheet> createReturnData(Object loadConfig,
			TimesheetRecordResult incomingData) {
		// TODO Auto-generated method stub
		return new ListLoadResultBean<Timesheet>(incomingData.getRecords());
	}
	
	

}
